package com.itsu.interfaces.service;

import com.itsu.interfaces.entity.Publish;
import org.bson.types.ObjectId;

import java.util.List;

public interface PublishService {

    ObjectId savePublish(Publish publish);

    Long countOfFriendQunzi(Long uid);

    Long countOfPublish();

    Publish findOneById(ObjectId publishId);

    List<Publish> findFriendsQunzi(Integer page, Integer pagesize, Long uid);

    List<Publish> findMovementsByPids(List<String> pisList);

    List<Publish> randomMovements(Integer pagesize);

    List<Publish> all();

    List<Publish> MessageLogs(String sub, Long uid, Long id, Long sd, Long ed);
}
